package com.psa.element;

import com.wxw.BaseLibrary.element.JsonObject;
import com.wxw.BaseLibrary.element.JsonProperty;

/**
 *
 * @author david
 * @date 2017-11-07
 */
public class CustomerPayBill {
    private String orderCode = "";
    private String orderDate = "";
    private int count = 0;
    private double sum = 0.0;
    private double gather = 0.0;
    private double balance = 0.0;
    private double wx_pay = 0.0;
    private int status = 0;

    public CustomerPayBill() {

    }

    public CustomerPayBill(JsonProperty jsonProperty) {
        try {
            orderCode = JsonObject.getJsonPropertyValue(jsonProperty,"VBILLCODE","");
            orderDate = JsonObject.getJsonPropertyValue(jsonProperty,"DBILLDATE","");
            count = JsonObject.getJsonPropertyIntegerValue(jsonProperty,"SALESUM", 0);
            sum = JsonObject.getJsonPropertyDoubleValue(jsonProperty,"ISUM",0.0);
            gather = JsonObject.getJsonPropertyDoubleValue(jsonProperty,"GATHER",0.0);
            balance = JsonObject.getJsonPropertyDoubleValue(jsonProperty, "BALANCE", 0.0);
            wx_pay = JsonObject.getJsonPropertyDoubleValue(jsonProperty, "WX_PAY", 0.0);
            status = JsonObject.getJsonPropertyIntegerValue(jsonProperty,"STATUS",0);
        } catch (Exception e) {

        }
    }

    public CustomerPayBill(JsonProperty jsonProperty, int status) {
        this(jsonProperty);
        this.status = status;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public String getOrderDate() {
        return orderDate;
    }

    public void setOrderDate(String orderDate) {
        this.orderDate = orderDate;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public double getSum() {
        return sum;
    }

    public void setSum(double sum) {
        this.sum = sum;
    }

    public double getGather() {
        return gather;
    }

    public void setGather(double gather) {
        this.gather = gather;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public double getWx_pay() {
        return wx_pay;
    }

    public void setWx_pay(double wx_pay) {
        this.wx_pay = wx_pay;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }
}
